package com.shqcjd.yunweiyanoperator.ui.adapter;

import android.content.Context;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.shqcjd.yunweiyanoperator.R;
import com.shqcjd.yunweiyanoperator.model.pojo.FollowListBean;
import com.shqcjd.yunweiyanoperator.model.pojo.VideotapeBean;

import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;

public class FollowListAdapter extends BaseQuickAdapter<FollowListBean, FollowListAdapter.ViewHolder> {

    public FollowListAdapter() {
        super(R.layout.item_follow_list);
    }

    @Override
    protected void convert(ViewHolder helper, FollowListBean item) {
        helper.tv_expert_name.setText(item.userName);
        helper.tv_expert_phone.setText(item.phoneNumber);
        helper.tv_business_expert_tag.setText(item.userName.substring(0, 1));
    }

    class ViewHolder extends BaseViewHolder {
        @BindView(R.id.tv_expert_name)
        TextView tv_expert_name;
        @BindView(R.id.tv_expert_phone)
        TextView tv_expert_phone;
        @BindView(R.id.tv_business_expert_tag)
        TextView tv_business_expert_tag;
        public ViewHolder(View view) {
            super(view);
            ButterKnife.bind(this, view);
        }
    }
}
